﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020002F9 RID: 761
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ClientObjDownloadDataScNotify : IMessage<ClientObjDownloadDataScNotify>, IMessage, IEquatable<ClientObjDownloadDataScNotify>, IDeepCloneable<ClientObjDownloadDataScNotify>, IBufferMessage
	{
		// Token: 0x170009DA RID: 2522
		// (get) Token: 0x0600220D RID: 8717 RVA: 0x000604A9 File Offset: 0x0005E6A9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ClientObjDownloadDataScNotify> Parser
		{
			get
			{
				return ClientObjDownloadDataScNotify._parser;
			}
		}

		// Token: 0x170009DB RID: 2523
		// (get) Token: 0x0600220E RID: 8718 RVA: 0x000604B0 File Offset: 0x0005E6B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ClientObjDownloadDataScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170009DC RID: 2524
		// (get) Token: 0x0600220F RID: 8719 RVA: 0x000604C2 File Offset: 0x0005E6C2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ClientObjDownloadDataScNotify.Descriptor;
			}
		}

		// Token: 0x06002210 RID: 8720 RVA: 0x000604C9 File Offset: 0x0005E6C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ClientObjDownloadDataScNotify()
		{
		}

		// Token: 0x06002211 RID: 8721 RVA: 0x000604D1 File Offset: 0x0005E6D1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ClientObjDownloadDataScNotify(ClientObjDownloadDataScNotify other) : this()
		{
			this.data_ = ((other.data_ != null) ? other.data_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002212 RID: 8722 RVA: 0x00060506 File Offset: 0x0005E706
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ClientObjDownloadDataScNotify Clone()
		{
			return new ClientObjDownloadDataScNotify(this);
		}

		// Token: 0x170009DD RID: 2525
		// (get) Token: 0x06002213 RID: 8723 RVA: 0x0006050E File Offset: 0x0005E70E
		// (set) Token: 0x06002214 RID: 8724 RVA: 0x00060516 File Offset: 0x0005E716
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ClientObjDownloadData Data
		{
			get
			{
				return this.data_;
			}
			set
			{
				this.data_ = value;
			}
		}

		// Token: 0x06002215 RID: 8725 RVA: 0x0006051F File Offset: 0x0005E71F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ClientObjDownloadDataScNotify);
		}

		// Token: 0x06002216 RID: 8726 RVA: 0x0006052D File Offset: 0x0005E72D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ClientObjDownloadDataScNotify other)
		{
			return other != null && (other == this || (object.Equals(this.Data, other.Data) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002217 RID: 8727 RVA: 0x00060560 File Offset: 0x0005E760
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.data_ != null)
			{
				num ^= this.Data.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002218 RID: 8728 RVA: 0x0006059C File Offset: 0x0005E79C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002219 RID: 8729 RVA: 0x000605A4 File Offset: 0x0005E7A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600221A RID: 8730 RVA: 0x000605AD File Offset: 0x0005E7AD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.data_ != null)
			{
				output.WriteRawTag(34);
				output.WriteMessage(this.Data);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600221B RID: 8731 RVA: 0x000605E0 File Offset: 0x0005E7E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.data_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Data);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600221C RID: 8732 RVA: 0x00060620 File Offset: 0x0005E820
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ClientObjDownloadDataScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.data_ != null)
			{
				if (this.data_ == null)
				{
					this.Data = new ClientObjDownloadData();
				}
				this.Data.MergeFrom(other.Data);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600221D RID: 8733 RVA: 0x00060674 File Offset: 0x0005E874
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600221E RID: 8734 RVA: 0x00060680 File Offset: 0x0005E880
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 34U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					if (this.data_ == null)
					{
						this.Data = new ClientObjDownloadData();
					}
					input.ReadMessage(this.Data);
				}
			}
		}

		// Token: 0x04000DE4 RID: 3556
		private static readonly MessageParser<ClientObjDownloadDataScNotify> _parser = new MessageParser<ClientObjDownloadDataScNotify>(() => new ClientObjDownloadDataScNotify());

		// Token: 0x04000DE5 RID: 3557
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000DE6 RID: 3558
		public const int DataFieldNumber = 4;

		// Token: 0x04000DE7 RID: 3559
		private ClientObjDownloadData data_;
	}
}
